 <%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<script type="text/javascript" src="../../js/check.js"></script>
<title>学生信息管理系统</title>
<script type="text/javascript">
function move(){
   var qu = $("#college").val();
	
   switch(qu){
     case "医学院":
   	 	 $("#major").removeAttr("disabled");
     	 $("#major").empty();
     	 $("<option value='临床医学'>临床医学</option><option value='精神卫生'>精神卫生</option><option value='基础医学'>基础医学</option>").appendTo("#major");
     	 break;
     case "计算机与信息工程学院":
    	$("#major").removeAttr("disabled");
      	$("#major").empty();
      	$("<option value='计算机科学与技术'>计算机科学与技术</option><option value='软件工程'>软件工程</option><option value='网络工程'>网络工程</option>").appendTo("#major");
      	break;
     case "物理与电子学院":
    	$("#major").removeAttr("disabled");
      	$("#major").empty();
      	$("<option value='通信工程'>通信工程</option><option value='电子信息科学与技术'>电子信息科学与技术</option><option value='测控技术与仪器'>测控技术与仪器</option>").appendTo("#major");
      	break;
     default:
    	 $("#major").attr("disabled","disabled");
     	$("#major").empty();
     	$("<option>--请选择--</option>").appendTo("#major");
   }
}
</script>
</head>
<body>
<%
String sn=(String)session.getAttribute("sno");

Student st=DaoFactory.getStudentDaoInstance().findBySno(sn);
%>
	<%@include file="navPage.jsp"%>
	<div class="container well">
		<form role="form" class="login-form form-horizontal" action="../../UpdateStudentInfo" onSubmit="return checkForm()">
			<h3><strong>完善个人信息</strong></h3>
			<div class="form-group">
				<label class="col-xs-2">学号：</label>
				<div class="col-xs-5" >
				<input  type="text" class="form-control " name="sno" placeholder="学号不可修改" 
				 value="<%=st.getS_no() %>" onBlur="return checkForm()"/>
				<span id="tips_sno">*学号由10位数字组成</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">姓名：</label>
				<div class="col-xs-5" >
				<input  type="text" class="form-control " name="sname" placeholder="请输入姓名" 
				value="<%=st.getS_name() %>" onBlur="return checkForm()"/>
				<span id="tips_sname">*姓名由3-5位字符组成</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">曾用名：</label>
				<div class="col-xs-5" >
					<input  type="text" class="form-control " name="ex-name" placeholder="若没有填无" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">姓名拼音：</label>
				<div class="col-xs-5" >
				<input  type="text" class="form-control" name="pinyin" placeholder="请输入姓名拼音"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">性别：</label>
					<div class="col-xs-5" >
						<label class="radio-inline "><input type="radio" checked="checked" name="sex" value="男"/>男</label>
						<label class="radio-inline "><input type="radio"  name="sex" value="女"/>女</label>	
					</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">身份证号：</label>
					<div class="col-xs-5" >
						<input  type="text" class="form-control" name="idnumber" placeholder="请输入身份证号" onBlur="return checkForm()"/>
						<span id="tips_idnumber">*身份证号由18位字符组成</span>
					</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">出生日期：</label>
					<div class="col-xs-5" >
						<input  type="text" class="form-control" name="birth" placeholder="请输入出生日期"/>
						
					</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">民族：</label>
				<div class="col-xs-5" >
						<input type="text" class="form-control" name="nation" placeholder="请输入民族"/>
						
				</div>
			</div>
			<div class="form-group">
				<label for="inputfile" class="col-xs-2">上传照片：</label>
				<div class="col-xs-5" >
					<input type="file" name="picpath" id="inputfile"/>
					<img />
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">籍贯：</label>
				<div class="col-xs-5" >
					<input  type="text" class="form-control " name="address " placeholder="请输入具体正确的籍贯"/>
				</div>
       	 	 	</div>
			<div class="form-group">
				<label class="col-xs-2">政治面貌：</label>
				<div class="col-xs-5" >
					<select class="form-control " name="status" >
						<option value="共青团员">团员</option>
						<option value="党员">党员</option>
						<option value="群众">群众</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-2">联系电话：</label>
				<div class="col-xs-5" >
				<input type="text" class="form-control" name="phone" placeholder="请输入电话号码" onBlur="return checkForm()"/>
				<span id="tips_phone">*手机号由11位字符组成</span>
				</div>
			</div>
		
			<div class="form-group">
				<label class="col-xs-2">电子邮件：</label>
				<div class="col-xs-5" >
				<input  type="text" class="form-control " name="email" placeholder="请输入电子邮件" onBlur="return checkForm()"/>
				<span id="tips_email">*请输入合法邮箱地址</span>
				</div>
			</div>
		<div class="form-group">
			<label class="col-xs-2">学院：</label>
			<div class="col-xs-5" >
				<select id="college" class="form-control" onchange="move()" name="xueyuan">
					<option>--请选择--</option>
					<option value="医学院">医学院</option>
					<option value="计算机与信息工程学院">计算机与信息工程学院</option>
					<option value="物理与电子学院">物理与电子学院</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-2">专业：</label>
			<div class="col-xs-5">
				<select id="major" class="form-control" disabled="disabled" name="major">
					<option>--请选择--</option>			
				</select>
			</div>
		</div>
			<div class="form-group">
				<label class="col-xs-2">备注：</label>
				<div class="col-xs-5" >
					<input type="text" class="form-control " name="eg" placeholder="请输入备注" onBlur="return checkForm()"/>
					<span id="tips_remarks">*备注限制200位字符</span>
				</div>
			</div>
      	<input type="submit" class="btn btn-primary" value="提交"></input>   		 		  		 		
      	<input type="reset" class="btn btn-warning" value="重置"></input>   		 		 	 		
		</form>
	</div>
</body>
</html>